home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / libgphoto2-2.postinst < prev    next >
Text File  |  2009-10-12  |  2KB  |  55 lines

  1. #!/bin/sh
  2. set -e
  3.  
  4. # Automatically added by dh_installudev
  5. if [ "$1" = configure ]; then
  6.     if [ -e "/etc/udev/rules.d/z60_libgphoto2-2.rules" ]; then
  7.         echo "Preserving user changes to /etc/udev/rules.d/40-libgphoto2-2.rules ..."
  8.         if [ -e "/etc/udev/rules.d/40-libgphoto2-2.rules" ]; then
  9.             mv -f "/etc/udev/rules.d/40-libgphoto2-2.rules" "/etc/udev/rules.d/40-libgphoto2-2.rules.dpkg-new"
  10.         fi
  11.         mv -f "/etc/udev/rules.d/z60_libgphoto2-2.rules" "/etc/udev/rules.d/40-libgphoto2-2.rules"
  12.     fi
  13. fi
  14. # End automatically added section
  15. # Automatically added by dh_installudev
  16. if [ "$1" = configure ]; then
  17.     if [ -e "/etc/udev/rules.d/50-libgphoto2-2.rules" ]; then
  18.         echo "Preserving user changes to /etc/udev/rules.d/40-libgphoto2-2.rules ..."
  19.         if [ -e "/etc/udev/rules.d/40-libgphoto2-2.rules" ]; then
  20.             mv -f "/etc/udev/rules.d/40-libgphoto2-2.rules" "/etc/udev/rules.d/40-libgphoto2-2.rules.dpkg-new"
  21.         fi
  22.         mv -f "/etc/udev/rules.d/50-libgphoto2-2.rules" "/etc/udev/rules.d/40-libgphoto2-2.rules"
  23.     fi
  24. fi
  25. # End automatically added section
  26. # Automatically added by dh_makeshlibs
  27. if [ "$1" = "configure" ]; then
  28.     ldconfig
  29. fi
  30. # End automatically added section
  31.  
  32.  
  33. PACKAGE="libgphoto2"
  34.  
  35. case "$1" in
  36.     configure)
  37.     # remove old fdi files
  38.     rm -f /usr/share/hal/fdi/information/10freedesktop/10-camera-$PACKAGE.fdi
  39.     rm -f /usr/share/hal/fdi/information/20thirdparty/$PACKAGE.fdi
  40.     rm -f /usr/share/hal/fdi/information/10freedesktop/10-camera-$PACKAGE-device.fdi
  41.     ;;
  42.  
  43.     abort-upgrade|abort-remove|abort-deconfigure)
  44.         ;;
  45.  
  46.     *)
  47.         echo "postinst called with unknown argument \`$1'" >&2
  48.         exit 1
  49.         ;;
  50. esac
  51.  
  52.  
  53. exit 0
  54.  
  55.